package com.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "provide-service",fallback =FeignConsumeBackService.class)
public interface FeignConsumeService {

    @RequestMapping(value = "/provide/index")
    public String index();
}
